import _http from '@/utils/http'

export default {
    goodsQryList(params, loading, headers) {
        return _http(
            'post',
            {
                url: '/eas/manage/goods/qry/list',
                apiName: '商品列表查询',
            }, params, loading, headers)
    },
    goodsUnshelve(params, loading, headers) {
        return _http(
            'post',
            {
                url: '/eas/manage/goods/unshelve',
                apiName: '下架',
            }, params, loading, headers)
    },
    goodsShelve(params, loading, headers) {
        return _http(
            'post',
            {
                url: '/eas/manage/goods/shelve',
                apiName: '上架',
            }, params, loading, headers)
    },
    goodsDelete(params, loading, headers) {
        return _http(
            'post',
            {
                url: '/eas/manage/goods/delete',
                apiName: '删除',
            }, params, loading, headers)
    },
    productBelongAreaList(params, loading, headers) {
        return _http('post', {
            url: '/eas/area/belong/list',
            apiName: '归属地列表',
        }, params, loading, headers)
    },
    channelGoodsDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/qry/channel/goods/detail',
            apiName: '渠道商品查询',
        }, params, loading, headers)
    },
    goodsQryDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/qry/detail',
            apiName: '商品详情信息',
        }, params, loading, headers)
    },
    channelList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/qry/channel/list',
            apiName: '渠道列表',
        }, params, loading, headers)
    },
    goodsCreate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/create',
            apiName: '新建商品',
        }, params, loading, headers)
    },
    goodsDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/qry/detail',
            apiName: '商品详情信息',
        }, params, loading, headers)
    },
    goodsModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/modify',
            apiName: '商品更新',
        }, params, loading, headers)
    },
    goodsZiliaoQry(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/ziliao/qry',
            apiName: '查询商品资料',
        }, params, loading, headers)
    },
    goodsZiliaoModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/ziliao/modify',
            apiName: '修改商品资料',
        }, params, loading, headers)
    },
}
